build system: add hdf5 check to RHEL matio hack