"InterlockedAdd" is only available on the 64bit compiler for Windows, use "InterlockedExchangeAdd" for 32bit.