Add version checking where using iOS7 features.