Compile support for iOS version < 8.0.

With this change you can use the app extension on iOS 8 and still compile on iOS 7.