Respect __NO_OPENGL flag
Fix building on Windows with __NO_OPENGL