GM laying off nearly 1,000 workers