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.