Buildability improvments

these changes were required to make building OPM-parser possible and convenient on my machine. (except for the guard macro name change.)

with this, opm-parser uses basically the same build system as opm-core which should make further development _much_ easier buildsystem-wise...