gengetopt: backport patch fixing support for c++17