Ford recalls nearly 40,000 SUVs and trucks