api_generator: c++: fix build
api_generator: cpp: start generator templates