PIE aio patch

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