[sanitizer] fix the non-cmake build