Fix tests on Windows
Merge pull request #529 from syncthing/windows-build

Fix tests on Windows