MSVC: link dynamically to the CRT
Dynamic linking is generally preferred over static linking, and MSVCRT.dll
has been integral part of Windows for a long time.
This also fixes linker warnings for _malloc and _free in zlib.lib, which
seems to be compiled for MSVCRT.dll already.
The DLL version also exports some of the CRT initialization functions,
which are hidden in the static libcmt.lib (e.g. __wgetmainargs, required by
subsequent Unicode patches).
Signed-off-by: Karsten Blees <redacted>
Signed-off-by: Stepan Kasal <redacted>
Acked-by: Sebastian Schuberth <redacted>
Acked-by: Marat Radchenko <redacted>
Signed-off-by: Junio C Hamano <redacted>