Migrate process-stat logic to libpstat, and link against it instead of
compiling it in.