Mathlink OS X 10.11 Linking with libMLi4.a

On OS X 10.11 with Mathematica 10.0.0.0 while linking I get a slew of errors starting with the following. I am using clang-700.1.76. I suspect I am missing some library in linking, but cannot seem to find where this is coming from. Any help would be much appreciated.

Undefined symbols for architecture x86_64:
“_CFDictionaryCreate”, referenced from:
_MLAlert_darwin in libMLi4.a(mlosx.c.o)
_MLRequest_darwin in libMLi4.a(mlosx.c.o)
_MLConfirm_darwin in libMLi4.a(mlosx.c.o)

In case anyone else runs into this I was able to solve it with the following:

compile with cc

link with g++

(both are clang++ modulo a configuration prefix and gxx-include dir)

In linking used the flags:

-stdlib=libstdc++ -framework Foundation -lc++