added glfw error callback handling. THIS MAY NOT COMPILE!