fix MinGW build #625