6ed0a43 Add gcc 12 build fixes

Authored and Committed by erack 2 years ago
    Add gcc 12 build fixes
    
    Borrowed from Firefox and partly adjusted.
    
    This still does not solve the
    "undefined references to `std::__glibcxx_assert_fail"
    on f36 (waiting for a gcc 12 fix) but does on f37.
    
        
file added
+94
file added
+13
file modified
+8 -0