Remove usage of sys/time.h as it is a posix only header.
Merge pull request #189 from robertmaynard/windows_compiler_errors

Remove usage of sys/time.h as it is a posix only header.