Fixed compiler errors in sample code
Merge pull request #19 from choefele/master

Fixed compiler errors in sample code