tests: test compiling all public headers with C++ compiler

While libnl3 is a C library (and itself can only be built using a C
compiler), the public headers are supposed to also work with C++.

Add a test for that.

Unfortunately, this test does not cover whether all symbols are
correctly marked as "extern "C"" for linkage.
2 files changed