Fix build under MinGW