fix mingw if blocks