Added support for library dependencies.