Extended Makefile to produce shared libraries on OS X and Linux.