fix MinGW build