Added 64-bit windows support, fixed glfw callback functions on windows.