DOMAINcfg does not compile with DOMAINcfg + AGRIF not compiling anymore with branch 4.2

same issue with branch 4.2 as in #169 (closed)