--with-yara= and --with-libnids= not finding installed dependencies

If libnids or yara are installed already, "make install" for those tools has put the header and libraries in $prefix/include and $prefix/lib respectively.  Find the required pieces there if specified with --with-XXX=$prefix

We have libNIDS and yara installed to be shared with other tools, but moloch's configure wasn't finding them properly.

Note: I basically copy&pasted the detection code, changing the paths.  If there's a better/more standard autotools way to look in the --with-feature=/path/ option, we should use it instead, but I couldn't find one.