[Bug 9226] New: MinGW build fails to link rewrite program with --enable-dynamic