Remove unused Autoconf checks from configure.ac and update dependants.
Use <ctime> instead of <sys/time.h>.