fixed runtime crash on iOS 7.1 device

tweaked the preprocessor conditional to test against iOS 8 instead of 7 to avoid runtime dynamic library linker crash