Add support for library's hidden dependencies
Some libraries like "libtheoraenc.so.1" or "libCgGL.so" assumes that you have already linked to other libraries.
With this commit we add support for those situations with the concept of "hidden dependencies".