Windows uses GetSystemTimeAsFileTime, which has some differences with Unix' gettimeofday. This commit also reduces the number of iterations for the ck_ticket_pb validation to 1000 - the test was taking too long on MinGW systems.