APPMODE can now be one of -mwindows or -mconsole.