Fix little endian compilation error