Compensation of dynamic machine tool deflections and geometric tool errors by TNC controller functions