Endianness problems

Neither BIG_ENDIAN nor LITTLE_ENDIAN are defined in Solaris.
This fix does not address that but provides an emergency fix for the case where
no endianness has been detected.
The real fix for endianness needs to be done in configure or some other configuration
tools.