mtapi_c: separated forward declarations to avoid type redefinitions