Do proper endian correction

This doesn't yet fix all problems, but at least allows one to build nqp for powerpc64