Fix compilation crash on windows.