Revert "Partially replacing old atomics."

This reverts commit d7c67b60f00a2606ecaef0e5fb74d994125b0208.
Finally, move to c++11 atmics and get rid of platforms specific behavior.