Changed foundation version comparison to iOS 7.