Add support for waitid().
Build fix