Move the package/command definitions/functions from mkwin to mingw.sh. (dm)