mds-kbdc: compile-layout: m + more test cases

Signed-off-by: Mattias Andrée <maandree@operamail.com>
mds-kbdc: compile-layout: m bug fix + more test cases

Signed-off-by: Mattias Andrée <maandree@operamail.com>
typo

Signed-off-by: Mattias Andrée <maandree@operamail.com>
no more direct allocations, always use macros, unless using alloca

Signed-off-by: Mattias Andrée <maandree@operamail.com>
add xmemdup macro

Signed-off-by: Mattias Andrée <maandree@operamail.com>