Fixes #310

On iOS 8, the forced orientation update sometimes fails.

Also fixed some Xcode 6 warnings.