[cppcheck] Fix style warning
[cppcheck] Catch exceptions by reference
[cppcheck] Prefer prefix increment for iterators
[cppcheck] Initialize members of setup::version