make code compile with newer gcc versions too