Fix GUI build error