Fix compile error using iOS SDKs before iOS 7

Add  #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000 guard to fix compile error using iOS SDKs before iOS 7