Fix debug build on Windows

Specify static linking to VC runtime libs under both debug and release
builds

MD-19678 #time 10m