windows: Fix MinGW build