added failsafe for hdf5 linking dir in case statismo is used to build and install hdf5