Fix compile warnings with glibc newer than 2.15