#599993 Add support for big-endian archs