Fixed dependencies in shared libs