MacOS compilation fix in endian.h.