berkeleydb-5: Fix for xcode 4.6 on OSX

See patch in
https://raw.githubusercontent.com/Homebrew/homebrew/master/Library/Formula/berkeley-db.rb
Merge pull request #567 from jcftang/wip-berkeleydb-5-yosemite

berkeleydb-5: Fix for xcode 4.6 on OSX