fix build with latest libtorrent_aio and update some deprecated use