Make make check work on windows