 +BEOSGUI_DEFS	= -DFEAT_GUI_BEOS
 +BEOSGUI_IPATH	=
 +BEOSGUI_LIBS_DIR =
-+BEOSGUI_LIBS1	= -lbe -lroot -ltracker -lsupc++ -ltranslation
-+#BEOSGUI_LIBS1	= -lbe -lroot -ltracker -ltranslation
++BEOSGUI_LIBS1	= -lbe -lroot -ltracker -ltranslation
++ifeq ($(strip $(word 1, $(subst -, , $(subst ., , $(shell $(CC) -dumpversion))))), 4)
++BEOSGUI_LIBS1	+= -lsupc++
++endif
 +BEOSGUI_LIBS2	=
 +BEOSGUI_INSTALL = install_normal install_beos_extra
 +BEOSGUI_TARGETS	= installglinks_beos

+
+resource app_version {
+	major  = 7,
+	middle = 2,
+	minor  = 0,
+
+	variety = B_APPV_FINAL,

+gui_beos_process_event(bigtime_t timeout)
+{
+	struct VimMsg vm;
+	int32 what;
+	ssize_t size;
+
+	size = read_port_etc(gui.vdcmp, &what, &vm, sizeof(vm),
