Fix torrent download

With libtorrent versions shipped by recent Ubuntu and Debian versions.

Fixes #941