Repair linking for iOS 5 build
Utility function for orientation 1