berkeley-db: patch for build under Xcode 4.6

Fixes #17596.
berkeley-db4: fix build under Xcode 4.6