Few fixes for libtorrent stuff