Under -fsanitize=undefined, always link with C++ compiler

Change-Id: I4ded563245dd6d491420a69903796d933cbd449c