Fixed build under MinGW