adapt to the recent API changes of opm-parser

this fixes the build once OPM/opm-parser#339 has been merged.