Silence -Wstrict-prototypes and static analyser warnings in klist.h

* Using "(void)" provides an explicit there-are-no-arguments prototype.
* Using the exact type in "malloc(...sizeof)" is clearer and silences warnings from clang's static analyzer.