Fix #1124: compile warnings in HelloWorld and Reversi.
Merge pull request #1127 from sjrd/fix-examples-warnings

Fix #1124: compile warnings in HelloWorld and Reversi.