Stop using internal libtorrent API. Closes 2202.
Fix compilation with libtorrent 0.15.x.