The error message appears because Grit uses the InterlockedCompareExchange64()
function that is only available starting with Windows Vista and Server 2003 – that is, Windows XP does not yet have it.
Rebuilding Grit on a Windows XP system may help, if it was written to choose from alternative versions of the same task at compile time. (For example, it is usually possible to perform the same task various other synchronization functions provided by Windows XP, although several of them would have to be combined, which would be a little bit more error-prone when writing and slower when running.)
On the other hand, Windows XP is ~12 years old by now, so it's quite possible that the developers have chosen to not support it anymore and haven't added any such alternate code versions.
Reinstalling Windows will not help, as its libraries simply do not have this function at all.