Fix credits too fast under MinGW build (fixes #288)