Make sure it works with C++ compilers too.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>