Some fixes for rtorrent