upgrading to a version of boost that includes boost::atomic and boost::context