don't use deprecated libtorrent functions