Fix k{u,g}id_t related building issues.

Signed-off-by: Yang Bai <hamo.by@gmail.com>