Remove dependency on curlpp.
Fix compilation of the json-c bits.
Fix linking of libcurl.