Fix torrent download

With libtorrent versions shipped by recent Ubuntu and Debian versions.
Merge pull request #943 from whirm/fix_download_torrent

Fix torrent download