make it work with libtorrent 1.0+