Ok, for the Savoys, an idea a bit complex but perhaps doable:
First POD: Philip of Orleans (the son of Duke Philip I of Orleans) dies in the end of 1697 (so just after Ryswick). Also both his daughters already born at the time of his death should die young or at least childless (well, it happened IOTL). The Orleans family go extinct in France.
Second POD: the Bourbons still suffer that string of deaths that made Louis XV the only surviving descendent of Louis XIV in France. However, ITTL he also dies around the same time as his brother in 1712, while the Duke of Berry still dies from a hunting accident in early 1714. It makes Philip V of Spain the heir of France.
As a union of France and Spain wouldn't be welcomed, but neither would be a union of Austria and Spain, the European powers decide that Spain proper (the Spanish territories in Italy and Netherlands could be subject of negotiation, of course) should go to other family. If we follow primogeniture only (but excluding Philip V and his children) then the eldest and nearest relative of the old Habsburg Spanish branch would be Anne Marie d'Orleans (daughter of Philip I of Orleans and through him granddaughter of Anne of Spain, eldest sister of Philip IV). Eventually it's decided that her claim would be the best one in order to keep peace, and so she is made Anna Maria I of Spain, installing the Savoy dynasty there.
Any chance for it to happen?