cdfg needs the includes of its bundled copy of agg, not the includes of the version installed on th system, so move /usr/local/include at the end of the list. Reported by and ok tb@