Make it compile on OS X 10.9 (no endian.h)