Enable linking with C++ tests.