fix Windows MinGW build