build: Add -static for mingw builds
build: Add -static for mingw builds

This avoids a dependency on libssp-0.dll when built with
-fstack-protector-all.

wastholm/bitcoin,wastholm/bitcoin,wastholm/bitcoin,wastholm/bitcoin,wastholm/bitcoin,wastholm/bitcoin