Fix libtorrent types forward declaration errors/warnings.
Use boost:bind() as the docs show. Allows compilation with older gcc versions.
Merge pull request #2060 from glassez/fwd_decl_fixes

Fix libtorrent types forward declaration errors/warnings.