Fix unit tests for Windows and CygWin.