Added Windows API for atomic operations.