Add compatibility with Xcode 6