IBM cutting thousands of jobs