Fixed for Windows; timeval not a standard definition.