Hartmut getoptlong

use getopt_long() and add alternative --long option names (including additional --version option)