Use static linking for MFC/CRT (mainline vba-m does this) and ensure correct linker order is used.

Fixes cases where CRT delete would be called for objects allocated by MFC.