Fix a bug in the creation of options array. The bug appears only with so...

Fix a bug in the creation of options array. The bug appears only with some compilers and was due to the fact that the arg_string was not allocated properly, according to the number of possible options, causing a segfault using getopt_long_only.