The company said it has incurred charges dealing with faulty engines and preparing for a rough Brexit.