Fixed MinGW build.