Tell the Makefiles to compile with GNU libstdc++ instead of LLVM's libc++. This maintains backwards compatibility with prior versions of OS X and avoids problems where the libc++ header files cannot be found when Clang is built from source on OS X 10.9.
Replaced regex using GNU sed extension with portable alternative. (see https://www.gnu.org/software/sed/manual/html_node/Regular-Expressions.html for more info on the extension)
Use libstdc++ in OS X on the CodeComplete, Diagnosis samples to avoid running into problems with the header file <vector>.
Merge pull request #1 from nglevin/osx-fixes

Mac OS X 10.9 fixes