api generator: fix build issue