Fix compile errors; use the "best" C code, since setresuid is available.