Endianness problems in Solaris.

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.
Merge pull request #635 from cduclos/master

Endianness problems