Add support for osx build.
Terminate glfw properly.
Update nanaka pointer, osx build now fully functional!