Replaced Free Getopt with getopt_port.