Fixing the hdf5 library find for case where it finds both debug and release libraries.