GM laying off nearly 1,000 workers, mostly in US, source says