Arrangements for cooling or ventilating wherein gaseous cooling medium circulates between the machine casing and a surrounding mantle