[sanitizer] fix gcc build