Use libstdc++ in OS X on the CodeComplete, Diagnosis samples to avoid running into problems with the header file <vector>.