Fix OpenGL renderer compilation errors under Clang / OSX.