Port a bunch of other stuff to use getpwuid, etc.