Fix libtorrent types forward declaration errors/warnings.