Fixed GLFW2 callback functions for windows.