Fix dependency to libcURL and yajl headers
Fix C++ compiler and CppUnit detection
Fix libtool initialization