[ASan] Put several function prototypes back under #ifdef _WIN32 to fix the Windows build.