Fix the handling of FIONREAD/FIONWRITE; thanks Tridge.