fixed compilation error if InterlockedExchangePointer is a macro