CMake: Generalize build rules for different arches for sanitizer_common, asan, ubsan