Move setting glfw error callback to before intializing glfw