fix IO#eof? method (consider the read buffer)
add method: IO#select