Merge "Use as much of the macOS endian support as we can."