Fix some PPC cross-compilation problems reported in #10076.