Tryin' to make this shit work with windows
WinMain now used on Windows

This made app.d significantly uglier but it now hides the console.

On Linux, the console is never spawned in the first place.

Additionally, fixed the window not responding on Windows by changing the
window loop back to the main thread. As per the GLFW documentation,
glfwPollEvents() may only be called from the main thread.
Of course I fucking forget to change the other one