Implement atomics for MSVC