Global in time weak solutions for compressible barotropic self-gravitating fluids