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