Regularization and supersymmetry-restoring counterterms in supersymmetric QCD