PIE aio patch

Up to PIE commit a56dffcc27cc5aebc3300a364b252472a7b1f6e5 in the jb2 branch. More PIE commits are needed
to complete everything but this lays the base frameworks part down.