Fix compilation errors in Xcode 6 beta 5