Add support for big-endian architectures.