Proper solution to problem fixed in https://github.com/gtorrent/gtorrent-core/pull/96

Please test on linux/older version of libtorrent before merging.