Create an import library containing the necessary CRT functions and link with that, rather than the compiler's own version.