fix so that tests can be compiled on Windows