In attachment you can find a patch for configure.ac.
It's needed to compile while using clock_gettime function.
Notice the commented line useful while profiling.
It's better to have this in some place, this is not the right place,
but i didn't know how to append this when compiling
And please, if possible, create another configuration
for advanced profiling. One with gcc integrated code instrumentation
(-pg), as it's right now with --enable-profile, and another with
the commented line, call this --enable-advanced-profile for example,
useful when profiling using valgrind for example.