Fixed compilation issues with new jlibtorrent API.