Backward compatibility with iOS 6

Using compile-time check for iOS 7 SDK and use iOS 6 runtime fallbacks.