Added option to activate use of boost::atomic (WITH_BOOST_ATOMIC)