win: fix compilation of tests

@piscisaureus