Removed more implemented API
Fixed handling of "in out" parameters
Implemented remaining wait(2) calls