Added entries for wait4(2).
Implemented wait4(2).

This patch includes some definitions for Java version. Because these are
needed by "make syscalls".