Make library C++ aware by wrapping function declarations in extern "C" blocks.