whoami: use libc::uid_t where appropriate