Replaced atomic operations with C++11's std::atomic. Refs #77.