Add support for glfw3.

Patch courtesy of Grachev from #n64dev.