Move curl_global_init() to dcpomatic_setup() and remove curl_global_cleanup.