Tentative PowerPC support, fixed numerous bugs relating to endianness.