please include function ai_postHandler.

static void ai_setPostHandler(AI_PostHandler handler) {
  ai_postHandler.set(handler);
}