[sanitizer] fix the non-cmake build (2-nd attempt)