Changed atomic includes to be compatible with c++11