Check only for C compiler not C++.

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>