Fix build with glibc >= 2.16 (patch from debian)