Water-cooled compressor