use libc pipe functions in conjunction with wl_eventloop