Fix compiling in ObjC++ mode