Fixed dynamic library name on OSX.