Converting to freeglut as glfw is causing too many problems