The header magic value is held in the native endianness, so the method used in cc0ec3fd. Use MachOReader / MachOWriter's existing endianness tests instead.