Fix func_curl compilation