[sanitizer] fix build with glibc 2.4, patch by Sandra Loosemore