Add read timeout support to Linux.