fix mingw32 if block