Added platform specific endian.h wrapper.