Correct the setting of linked libraries for Berkeley DB.

Amends: r2068

git-svn-id: svn://daper.net/moc/branches/2.5@2704 910807d9-36e0-0310-a014-e9ea483e2ba4