Added support for static libraries.