added: hook for conditionally compiled files

backport from opm-upscaling PR#100

(ps; sorry about the misplaced branch)