MSVC: link dynamically to the CRT
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 <955b63282c975ba379c4995cac1c2e1e7dfebe62@dcon.de>
Signed-off-by: Stepan Kasal <257b363030caa50dbc1cdef9b268d9d56bf639f1@ucw.cz>
Acked-by: Sebastian Schuberth <77397652b38ec60b50e56236b813774ce842bcdf@gmail.com>
Acked-by: Marat Radchenko <2089d3fab0c51db3809c7a5f7dbc68b8f0e36ef4@slonopotamus.org>
Signed-off-by: Junio C Hamano <a6723cc3f76163bf7adb636a73ac3b0ceb3e6b9b@pobox.com>

destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git