win32: Fix atomics
win32: Build fixes