Engines with means for preventing corrosion in gas-swept spaces