Statically link std libraries under mingw

Allows for easier redistribution.

No functional change.