Fix wait3() function and bump build revisions