fix compile bugs: getpid not found