Link libgcc statically on Win64.
Allow linking it statically on Win32 with an override.
auto merge of #17471 : vadimcn/rust/link-libgcc, r=alexcrichton

Closes #17271
Closes #15420