getopt: allow compilation with C++