use boost.atomic instead of atomic_count from libtorrent