Fix problems detected by Cppcheck
Update version