Move proc name setting to util.

Make setproctitle optional since it's compiled.