Fix endianness detection on SunOS/x86_64