Added compatibility with Xcode 6