uid_t/gid_t should be formatted as unsigned long

mmkfilter_passwd_byuid()/mkfilter_group_bygid() get wrong filter string
because "%d" will return negative when uid/gid larger than 2^31, and
result to "Authentiction failure".

This also changes the other places where uid_t or gid_t values are
formatted.