Add documentation on shared library handling