non-threaded version is working on windows again