Fix connect automatic test for win32 with a simple hack