Completed automatic dependency solving for extern libs