Remove debug_flag and window_flag setting when NDEBUG is not set