Fix timeout on windows with cygwin