[sanitizer] Fix gcc build.