C++: Fix test_cpp.cpp to work with VPATH builds