syscheck

* fix compiler warnings
* fix static analyzer warnings