mingw: move unlink wrapper to mingw.c