PowerPC warnings & optimisations patch by (Dan Christiansen <danchr at daimi dot...