fixes a few of jenkins warnings
cppcheck
Warning and dead code cleanup.
code cleanup: quiet warnings with gcc.
patch for 771738, 635469, 700298, 705382, 716057 by Gellule
Warning cleanup
Add forgotten libavoid files