fix compilation on later glibc/gcc versions with stricter checks