Fix for build systems that have ancient (pre 1.8.7) versions of libhdf5.