Fix ENABLE_OPENGL=OFF builds