Fix occasionally failing solaris setwinsize