Fix Xcode 6 compilation