more portable library detection

 * use pkg-config for libconfig++ and crypto++
 * use -lboost_thread-mt instead of -lboost_thread