Fixed build errors when target version <7.0

Use iOS 7 features only, if min target is 7.0 or higher.