Tiny changes to example files for C# and Java so they will run - still need to be updated though

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>