Fixes to make the new autorotate option work properly on iOS 8.0 and 8.1