make it compile without warning on the current DUNE git master branch

it already has the required #ifs in the code, but without this they will not work