[syscheck] fix compiler warnings
[syscheck] fix CID 28505, 28506
[syscheck] fix CID 28429
[syscheck] fix windows build
[syscheck] delete dead code
[syscheck] add nonnull qualifiers
Merge pull request #367 from cgzones/syscheck

syscheck