Log Message: pdfgrep: fix compile with pre-2016/12/16 dirent.h on NetBSD dirent.h v1.35 from before 2016-12-16 has a different prototype for scandir() and thus cache.cc won't compile there. Added a configure section to detect this so that both v1.35 and v1.36 dirent.h work.