Mac OS bug STARTUPINFO fixed

Moved STARTUPINFO to only init when on windows