Halo density profiles and baryon physics