Support for Big Endian CPUs; make code use Qt types