correct some warnings signaled by cppcheck 1.66