Fixing deprecation warnings when using iOS 7 as deployment target

I'm using __IPHONE_OS_VERSION_MIN_REQUIRED to preserve compatibility with every iOS version target.
At the same time there are no warnings when using iOS 7 as target