fixes for running on windows