Added missing support for dynamic shared libraries.