Made the test suite (mostly) runnable on Windows