mongodb: make it compile on Yosemite

via: https://github.com/Homebrew/homebrew/commit/8bc18e9eb1c5faad330ca3becf974ceec4845e2f