Fixed deprecation warnings for iOS 7 and above

Also, fixed a bug in the Levenshtein algorithm that caused random crashes
`NSCalendarIdentifierGregorian` is added in iOS8 (I haven't check on mac). Means if the library will use it, it won't support iOS7. So probably it shouldn't be updated for now. Or it should be updated in backward compatible way.