This patch adds the ENABLE_ASAN option to CMake that enables AddressSanitizer. Currently, it works only for GCC.