I'm not deep into C++ and I can't seem to access the older build logs of brew-test-bot (don't have a lion or ml machine at hand). There were some missing headers and after googling around it seemed to me like the c++ standard-library version provided with lion/mountain lion was too old and lacking features.

I don't know wether that could be fixed by using a more modern compiler. Is the standard library used dependant on the compiler?

Some SO-Answers suggest using llvm's [libc++](http://libcxx.llvm.org/) on older OSX versions. [This comment](http://stackoverflow.com/questions/14128298/homebrew-gcc-llvm-and-c11#comment19579605_14133160), however, states that mixing different standard libraries in linked libraries and the actual binary might not be a good idea.