Add support for glfw3.

Patch courtesy of Grachev from #n64dev.
Allow the window to be resized.

Patch courtesy of Grachev from #n64dev.