fix terminal size detection in mintty