[runtime] Fix the mingw build by defining InterlockedCompareExchange64 () which is missing from mingw's winbase.h.