Several sources seem to assume that the work in this case is ideally the enthalpy gained by
the fluid, but after the compression the compressor must push the fluid out from the compressor? I try to explain this question also in my new blog: http://thermodynamicalmisconceptions.blogspot.com