core and runtime linking on macosx