fix some cppcheck warnings & update submodules