Fix compatability with libtorrent 1.1/svn without breaking 1.0

Please test before merging, also see https://github.com/gtorrent/gtorrent-core/blob/master/src/Torrent.cpp#L91 for similar problem and solution.