Fix Xcode 6 build error