Add inclusion of <sys/time.h> needed for struct timeval declaration.