Stop using internal libtorrent API. Closes 2202.