Add support for iOS 8

Resolves #7

This commit adds support for iOS 8 in a fully backwards compatible manner, so the library continues to work for iOS 6 & 7.