[PECOFF] Simplify PE/COFF header writer.