I.e. move the xcb-event-handling into xcb.c and the child-process-communications into newly created child.c. Also change some includes.