Fix Xcode 6 compilation issue