fix all the <time.h> vs. <sys/time.h> issues, hopefully