Add *.syso files to the .gitignore.
Fix linking of libcurl.
Fix compilation of the json-c bits.
Upgrade protobuf from 2.4.1 to 2.5.0.