This fixes the auxval logic on NetBSD.
The Solaris auxval test fails, because Solaris uses different preprocessor symbols (and numbers) for its UID and GID auxval types. Note that issuid() could simply be an alias of issetugid() on Solaris, so perhaps this is not necessary.