Fix for iOS 8.0 Landscape issue.

Replacing compile time directives with runtime version check.
Merge pull request #184 from vidhyadharan-Mohanram/master

Fix for iOS 8.0 Landscape issue.