__uid_t and __gid_t are glibcisms and undefined on Musl systems. uid_t and gid_t however _are_ defined and the same thing, so use those instead