Compiling the HDF5 library from source myself seems to have worked - my version does not depend on libcurl at all, so avoids the dependency conflict that seems to be the problem above.
I don’t understand why LD_PRELOAD didn’t work for me - would be interested to know, or get suggestions for further debugging!