crt: Replace repeated code for loading of msvcrt.dll function by common code from msvcrt_or_emu_glue.h Signed-off-by: Martin Storsjö <martin@martin.st>