automatically fetch dependencies for statinc linking