GCC complained about implicit declaration of gettimeofday.