Use <time.h> rather than <sys/time.h>