Changes to motioncontroller.h to do away with GLEW/GLFW dependence