Do the global initialization of curl before everything else.

Signed-off-by: Thiago Farina <tfarina@chromium.org>