Merge pull request #12 from linux-on-ibm-z/byte_order_fix

Fix the endianness detection

The current BYTE_ORDER check is not detecting big endian correctly and test failures were observed because of this.
With this fix, all tests pass on s390x(big endian). Also this does not affect amd64 results.