dynamic lib for osx