hdf5: add patches