Compensating the speed difference between engines meshing by a differential gearing or the speed difference between a controlling shaft and a controlled shaft