fix call InterlockedCompareExchange64 bug for windows