Fix to run in Xcode 6 beta