Updates to use plugin-profiles

And cleans some warnings.