Fixed wait4(2) for Java to return a result.
Fixed wait4(2) for Java to use the target slave's exit code.
Implemented kill(2) for Java.