Replace all of this /MT code with scary macros which supposed to work.