Add special environment variables for sanitizer in LegacyGaudiCMakeSupport.cmake
With the new CMake configuration, the special flags and environment options for the sanitizers are set in the toolchains, but legacy projects expect something to come from upstream projects.
This MR covers the gap.