[4.8] Backport ARM libsanitizer support

Backport of r198683 and r199606