gplugin/gplugin

Clean up some errors found by pvs-studio and add some suppressions for stuff it thinks are errors