[CMake] Fix build of ASan tests on Mac