Properly handle orientation changes across iOS 7 and 8.

Most existing applications are still compiled with stable Xcode which means using iOS 7 sdks not 8 as the base, the current master broke all those applications when running on iOS 8 device, because system is smart enough to simulate old interface orientation logic for existing apps (and it checks that by checking base sdks used).