fix libtorrent 1.0 compatibility
don't use deprecated libtorrent functions
Merge pull request #1221 from arvidn/master

compatibility fixes for libtorrent 1.0 (trunk)