changed (WINDOW*)->[width|height] accesses to getmax[x|y](WINDOW*) calls to make it work in linux