Added support for dynamic libraries.