Fix some serious mistakes in GLEW usage.