CppAD: Apply changeset_3494.diff