Handle other-endian MO files

The gettext MO files can be in either big or little endian format, handle
both types.