Fix libtorrent types forward declaration errors/warnings.
Merge pull request #2060 from glassez/fwd_decl_fixes

Fix libtorrent types forward declaration errors/warnings.