Fix noisy mhash_dir addition error.

It always added the cflags and includes even when mhash_dir was
blank.
Make --with-pcre-config work

Fixes Issue#0000560
http://bugs.librdf.org/mantis/view.php?id=560
Make --with-libgcrypt-config work same way as --with-pcre-config