Fix linking with libconfig++ in CMake.