Fix curl_json to have useragent defined

Upstreamed patch does this a little differently so need to hack
to get curl_json to build with the original version by passing
in the cppflags when building the object.