Fix some type/format mismatch warnings for pid_t.