better mocking for MSWin32