Synchronise build system with OPM-Core

This change-set brings in the most recent improvements to the OPM build system from module opm-core.