Fix for libmruby.a depending on dlls

This fixes compilation of bundled gems when libmruby.a depends on dynamic libs as for effect of other, compiled-in gems.

Also, it works on Windows