Population dynamics in compressible flows