Fix libcurl initialization.

Move global libcurl initialization out of http.c so it applies
to both the browser and the mail client.