Fix posix-test on Windows