Fix frame/rotation issues for iOS 5