Linking hdf5 libraries.