Revert "Got rid of *static* hdf5 dependence in configure.py"

This reverts commit c0d5719f65b897d85240ef31942e45927ee5532d.