Fix tests on libc 2.17