Remove explicit declaration of agerr() and include cgraph.h