[FIX] fixed atomic primitives under Windows
Merge pull request #312 from weese/feature/fix-win-atomics

[FIX] fixed atomic primitives under Windows