Merge pull request #1 from JoakimSoderberg/master

Add user context
Add example
Enable compilation on MSVC (C89).
Fix memory leak.