[addagent] fix build