This is needed as getopt is not thread safe. This will allow usage of getopt to parse CTA command lines.