Fix so that StartupInfo is initialized only on windows