Implement writing opt pack (i.e. mods) headers