Fix dylib names on Darwin

As opposed to Linux (and other *nix), where is a common practice to append the library
version number as the latest extension, in OSX the convention is to put it
between the library name and the dylib extension.
Merge pull request #147 from planas/fix-dylib-names

Fix dylib names on Darwin