Implement big endian platform support (untested!)