Fix some Qt4 ports to build on powerpc64. All the Qt4 stuff is EOL,
but let's spread it to more platforms while it's still there. These
fixes were reported in the context of building math/qtiplot.
PR: 233479
Submitted by: linimon
Reported by: linimon