Massive stars and the intergalactic medium