Fix compile errors in example

Fix compile errors so that the example compiles with the latest nightly.
Merge pull request #6 from iliekturtles/patch-1

Fix compile errors in example