Added hook for using multiple headers for one library.
Check BDB directory before checking headers. Cleaner and faster.