Fix ifdefs for tests temporarily limited to Windows