rendererGL: fix compilation errors in C++