Use external libs of static libraries when the static library is linked to a final target.