Extend Makefile to produce shared libraries

I’m hacking together a Python interface to this library using ctypes, which means I needed a shared object file (`.dylib` on OS X, `.so` on Linux). This small PR just adds an appropriate target on each of those OSes; I’ve tested it on both so far (thanks to Vagrant) and it seems to work.