Patch to fix build
Naively replace deprecated curl option CURLOPT_PROGRESSFUNCTION with CURLOPT_XFERINFOFUNCTION and add a missing include.
Builds and works OK from what I can tell from surface level testing.
Fixes: https://archlinux.org/todo/retire-pkgtarxz-from-extra/