work on OSX lib dependency