Removed std:: qualifier from atomic as atomic isn't in std on older compilers.