check endianness of a system