Make sure that we are portable and work with C++ compilers.

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