ENHANCED: wait_for_input/3 is now left undefined if the underlying OS
primitive (select()) does not exist.
ADDED: Spending() to query for buffered data on streams that act as an
input filter on another stream.
FIXED: Use Spending() for wait_for_input/3
Updated clib and http to exploit new Spending interface