C++ standalone: added code to automatically run examples in
runtime/standalone and compare output