more tweaks for MinGW