api: fix build