mingw port: makefile improvements