Compile object files for DLLs with /MD

This is needed to pass CRT objects between DLLs and to safely malloc in
one DLL and free in another.

See http://msdn.microsoft.com/en-us/library/ms235460.aspx