add wait_pid and POSIX module