Fix conditional on byteorder to work on Solaris