Add plugins to build system, move extra warnings to plugin