Numerical Simulation of Weakly Compressible Flows in Deforming Domains