Correct the setting of linked libraries for Berkeley DB.

Amends: r2068

git-svn-id: svn://daper.net/moc/trunk@2705 910807d9-36e0-0310-a014-e9ea483e2ba4