Properly detect and support non-little-endian architectures.