fix some style errors detected by cppcheck