Some #include's are missing. The patch adds it to cln/io.h. Somebody might complain that the include should not happen in header files if it is not really needed, but it seems that upstream really expects that all possibly needed includes are done in this header.
Created attachment 190840 [details, diff] Fix compilation with gcc-4.4
Patch works.
added to the main tree. thanks for the report and the patch.