Fix compilation on Musl systems
__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
This replaces !1303 (closed) as I forgot to make it on my personal fork and to name it work/whatever
so I can't rebase that MR...