Water-cooled chillers and heat pumps