Add macros to check for iOS 8

@confucious - review