Fix libtorrent types forward declaration errors/warnings.

Forward declarations of struct with class keyword produce warnings (and compilation errors in some cases) with some compilers (e.g. with VS2013).