gettimeofday fix for windows