klatt.c: only include malloc.h if not __STDC__

If a compiler/standard C library complies with __STDC__, malloc
and friends are defined in stdlib.h. On older compilers/libraries,
these were defined in malloc.h.

This should fix building on BSD-based systems like Mac OSX and the
*BSD family.