api_generator: fix build