shared review

* fix a bunch of compiler warnings
* fix some static analyzer issues
* print received signal number when exiting
* remove duplicate header comments in 'custom_output_search.h'
* remove duplicate function 'searchAndReplace2'
* comment out unused debug function 'OS_PrintRuleinfo'
* comment out empty and unused function 'OSStore_Delete'