build: check for clock_gettime using AC_SEARCH_LIBS.