Detect cdb on OSX

cdb from homebrew doesn't ship a .pc file
so detect it the old-fashioned way.
Merge pull request #1742 from rubenk/detect-cdb-on-osx

Detect cdb on OSX