Guard scan_lightgrep declaration with #ifdef HAVE_LIBLIGHTGREP.