Migration to iOS 7 and OS X 10.9 code