Fixed some 32 bit issues on ppc.