General Motors to cut thousands of jobs in massive restructuring