Fix references to "src" in the .gitignore file.
Fix linking of libcurl.
Fix compilation of the json-c bits.