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.

Log message:
Update to 2.0.1
* Disable C++ locale on NetBSD to avoid runtime error in non-C locale case
Changelog:
Version 2.0.1 [2017-03-06]
---------------------------
- Bugfix: Fix --cache when used with recursive search
Version 2.0 [2017-01-25]
-------------------------
- **Incompatible change**: `--context/-C` is now line based as opposed to
character based and works just like grep
- Two new options from grep: `-A/--after-context` and `-B/--before-context`
- Lines with multiple matches are now printed only once
- Optional caching of pdf-text for faster operation (by Christian Dietrich)
This adds a **new dependency**: libgcrypt
- Bash-completion improvements (by Rainer MÃ¼ller)
- Bugfix: Fixed string search (`-F`) now works as advertised with multiple
patterns
- Bugfix: Empty pages can now be matched with `^$`
- Bugfix: The pattern `^` now matches *only* at the beginning of pages
- Bugfix: Text outside of PDF's CropBox but inside the MediaBox is not
ignored anymore.
- Various fixes for BSD support