Fix for C++ tests build dependency.