Use boost::detail::atomic_count instead of std::atomic, which is not present in lucid