Fix crash when restoring older projects prior to
GUI_LAYOUT_SERIALIZATION_MAJOR_OVERHAUL.
Also se the GCC_DIAG_OFF_48 macro