I can see why someone would think there was Terrier, but I'm not so sure about Basenji. (The only way to know for sure is to do a DNA test.) Both of your dogs look very similar. What breed, or mix, is the older one?
No idea, sometimes with mixes it's so hard to tell what the parentage is. I do think that your dog's head is a bit more refined than many of the pit mixes i've seen.