tests: look for '.lo' rather than '.o' object when using Libtool with C++