Add osx dynamic library.