fix compilation of tests on Windows

fixes #1588