Fixes for iOS 6 rotation changes.