Merge more parts of #4716

This is mostly ppcjit changes and ifdefs from the xbox pull, rebased.

Just trying to reduce the distance a bit more, although there will be conflicts at this point.

-[Unknown]