Fixed framework linking on mac osx