Fix compilation for examples
Merge pull request #9 from javadev/master

Fix compilation for examples