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