build: fix static dll link for mingw
dll's are no longer dynamically linked to libgcc/libstdc++/libssp