Add check for HDF5 library.