Merge pull request #10 from jorgenpt/unstable

Fix x86 builds on Clang 3.2/Xcode 4.6.
Use OSAtomicCompareAndSwap64Barrier.

Replacing atomic_mov64 with an implementation that just calls
OSAtomicCompareAndSwap64Barrier on all OSes.