Added support for dynamic library loading.