Add information on how to compile shared libraries.

All of this is extracted from Perl's config database. nwc10++ for pointing me
to the right docs, which made this a lot easier than it would've otherwise
been.