Fix compilation with libtorrent 1.x.x.

Current libtorrent trunk is marked as 1.0.0 and broke our #ifdefs.