lua : add a function to check compatibility with running API