c client: use libcurl instead of threads + rain bugfix
c client: another rain bugfix (small content reconstruction)