Detect C++ compiler in l4common.h