changed LITTLE_ENDIAN #define to avoid conflicts with some platforms