Fixing the hdf5 libraries for the case where they include debug and release.