prevent windows from crashing on startup
Merge pull request #477 from dickeyxxx/windows-compat

prevent windows from crashing on startup