Fixed GLEW errors from the restructuring.