added a function to query the avaliable size in the output buffer

+ fixed an edge case in the select()-based implementation
add an mtee (multi-tee) API

It allows copying everything written to a filedescriptor to any
number of different filedescriptors

(NOTE: the actual implementation the limit imposes an arbitrary
limit of 256 filedescriptors)
added tests for the iomtee api