Use the exported CMake toolchain file instead of a custom and broken one. Slightly modify the C++ example code to introduce modern tools like auto keyword and shared_ptr Signed-off-by: Philippe Leduc <philippe.leduc@mailfence.com>