Add support for shared libraries