Fixed 'const' qualifier mismatch around getopt