Fixing atomics
Using MemoryBarrier() for CPUs not supporting SSE2