Fixed Bug #3568: Build fails with WITH_OPENGL=ON