fix ksp/tsp crash on Windows.
Merge pull request #142 from sanak/develop_issue137_1

fix ksp/tsp crash on Windows.