Workaround for libtorrent 0.16.3 segfault