Spyker has deal to buy Saab from General Motors, avoiding shutdown