pidfile without libutil.h