build: run cppcheck for common builds