added preprocessor flag for ncurses usage (sometimes using PDCurses for example); added missing GPL notices; added some MS Windows-only code for console size/position handling which could be useful