fix the build on the current master

this depends on OPM/opm-core#578 and is hopefully the last fallout of
OPM/opm-core#518.