powerpc fixes

Two commits contains powerpc fixes