EXHIBIT 10.12 SERIES D PREFERRED STOCK PURCHASE AGREEMENT