Updated the code to work for the latest glfw.
Merge pull request #2 from jroweboy/master

Updated the code to work for the latest glfw.