mingw rules improvements