Fix several cppcheck