Exclude getopt.c from cppchecking
Correct errors style errors found by cppcheck