fix Linux winsize ioctl definition and add a type and test, fix #135