id: use libc::{uid_t,gid_t} where appropriate