cmd_parser: New option --retain-old-md-by-age
Support for the new param --retain-old-md-by-age
Fix few compiler warnings
Fix issues found by coverity scan