Use std::atomic<bool> instead of std::atomic_bool.

This way we don't need the workaround for the missing atomic_bool in clang.
See http://stackoverflow.com/questions/14136128/clang-doesnt-know-stdatomic-bool-but-xcode-does