Fix compilation with libtorrent 1.x.x v2