Fix compilation warnings on mangled gcc