Save window maximized state in sessions.
Also ensure backward-compatibility with existing session files.
Fixed compile error on curses from previous commit; src/textadept.c