Fixing a bunch of issues with glfw3 implementation that I found on windows