Fix C++ API exports/add some missing C++ API functions