Additional tweaks to iOS kernel. Added old functions to adjust window coordinates on rotation.