Fixes so the C++ "hello world" example now compiles (issue #14)