Autotools fixes
Couple of fixes and improvements:
- fastparser is disabled when the version ends with -dev or .git exists
- some HEADERS got nobase prefix, but it was not reflected in the _SOURCES variables
- LMDB headers should not be installed in internal/namedb, e.g. move them from _HEADERS to _SOURCES
- and finally cleanup in the conditional - use only one block per libraries (always on), daemon (HAVE_DAEMON) and utilities (HAVE_UTILITIES) instead of here and there approach