put CURLHandler construction in gl thread