CURL: moved the global_init into a static HTTPClient function instead