Existence results for the Euler and Navier-Stokes equations for non-homogeneous and compressible fluids