Fix compiler warnings: use non-deprecated constants

Formally deprecated in OS X 10.10 and iOS 8:
- `NSYearCalendarUnit` & friends in favor of `NSCalendarUnitYear` etc.
- dto for `NSGregorianCalendar` in favor of `NSCalendarIdentifierGregorian`.