Fix compatability with libtorrent 1.1/svn without breaking 1.0