Guard against using iOS 8 APIs in Xcode < 6
Merge pull request #499 from jacobrelkin/jacobrelkin/make-xcode-5-happy

Guard against using iOS 8 APIs in Xcode < 6