OS X expects dylib file names to be .VERSION.dylib, not .dylib.VERSION.
Patch from utizoc.
Fixes issue #227.
Adding build option to print stack traces on segfault.