Fixed a few minor compilation errors when using ObjC++