Fixing atomics
Using MemoryBarrier() for CPUs not supporting SSE2
Merge pull request #1084 from cinaera/atomics

Fixing atomics (threading)