Use the select and pipe2 modules from gnulib