RE: How does Springfield get away with it
The XD is made in Croatia. It used to be called the HS2000 I believe. The company that makes the XD started to go under because of not marketing the gun well and not charging enough for it. Springfield bought the rights to the gun, changed the name and import it from the same Croatian company.
Glock isn't the only polymer framed pistol out there though. There are numerous companies that offer a polymer framed hand gun. I don't know if they have any kind of agreement with Glock or not though. All a company has to do is change one tiny thing about a patented part or entire gun and that new part with the tiny change now becomes and entirely new patentable part.