Fix compile error on big endian platform