compatibility for newer gcc versions