telit2: fix FTP EOF detection on ancient libc