fix multiprocessing issues on windows