Replaced custom OpenGL bindings with GLEW library.