ast: Use clibs/strdup to remove implicit declaration warnings