support older gcc versions