Define FUNC_ATTR_UNUSED for compilers that don't support it
kl_empty() can be implemente as a kl->size == 0 test
Implement lalloc_clear and alloc_clear using xcalloc