Rework some nscd code not to use variable-length struct types.