Add support for building a shared library.

This adds a build target (make lib) that creates libmmd.so, a shared library that other code can call into to use multimarkdown as a library, instead of requiring other programs to use multimarkdown as a binary.