Compensating adverse effects during turning, boring or drilling