t/logs/libtool: Fix file extension for C++ compile.