check endianness only once on runtime.