Fix win32 failures

This fixes the test suite on windows.