Boeing cuts costs as defense outlook dims