fixed broken gettimeofday implementation for Windows

small, but critical typo :)
Merge pull request #1818 from unak/patch-1

fixed broken gettimeofday implementation for Windows