Fix compile error using iOS SDKs before iOS 7