This commit: * Fixes compilation and execution errors for C++ programs in LibOS/shim/test/native. * Adds a C++ regression test.