Merge pull request #1 from Cloudef/master

Update to latest glhck
Fix typos in the API
Fix compile warnings
Update to new glhck and make work with emscripten