main.cpp: when daemon, clean up before exiting. Plugin.h: silence a initializer warning CMakeLists.txt: enable compiler warnings