Fix typos in the API
Fix compile warnings
Update to new glhck and make work with emscripten
Merge pull request #2 from Cloudef/master

Emscripten port and new glhck (internal-restructure)