add backward compatability with xcode 5