Adapt to Berkeley DB's 4.6 API changes.

git-svn-id: svn://daper.net/moc/trunk@2595 910807d9-36e0-0310-a014-e9ea483e2ba4
Adapt to FFmpeg/LibAV's latest API deprecations.

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