fix win-extras target on windows
fix #3998
WINDOWS: fixes for spawn tests