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 breaks orientation support in all those applications when they are run 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).