GLFW native handling funcs

Compiles on linux and windows.
Needs testing for Mac.