Canadian plane and train maker will shed jobs for the second time this year as it deepens turnaround efforts at its rail division.