autotools: add cppcheck target
autotools: add sparse-check target
log: add missing break in log_output()
cron: use localtime_r() instead of localtime()