changing clock_gettime() to gettimeofday() to make it compile on system not conforming to POSIX.1-2008 (hi, Mac!).
use: autoreconf -vfi to install all the deps and build.