Hi harrone,
I think you are on the right track with the 2nd one, looks like a refrigeration compressor to me.
Do the isolation valve spindles have square imperial across the flat sections on the ends of the spindles? e.g. 1/4" or bigger?
If so chances are it is definitely a refrigeration compressor. I suggest you carefully release any internal pressure in a well ventilated area just in case it still has some refrigerant under pressure locked in before opening up, officially all gas should be reclaimed using a vacuum pump and cylinder and not vented to the atmosphere, as the refrigeration gas is most likely non ozone friendly! In the past some people would use old refrig compressors for air compressor use but they are not designed for compressing air and are not very efficient, but will work. All connections would most likely be flare fittings for copper pipe with brass nuts.
I have no knowledge regarding the other pumps.