Fix CMake sanitizer build support.
Fix CMake sanitizer build support.

Linker flags for -fsanitize must be set before the test
of C/CXX flags because the link step that occurs as part
of the C/CXX build test fails otherwise.

Change-Id: Iedfead47598dc086b2477ae99b6f7bc9fae222d2

GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom