[UBSan] Use <machine/endian.h> on Darwin.