Changed iOS version checking to precompiler #ifs

This stops the Xcode warnings when building the app