do not attempt to access GLEW_ variables without a state

fixes crashes...