Added Mac OS X support for soname