qtui: HAVE_WINDOWS and HAVE_DARWIN are not defined in config.h, use Qt constants for this for now