Add getpgrp for porting CRuby
Add getppid for porting CRuby