It works when i replace InterlockedAdd with InterlockedExchangeAdd. InterlockedExchangeAdd...
MinGW32 build broken for 1.2.0-RC6