add glfw code to fix mouse cursor problems