define TIME_WITH_SYS_TIME if applicable
scan_direntry: fix reversed HAVE_ALLOCA usage