Misc fixes to HDF5 library detection

* re-add re-missing compiler error output to /dev/null;
* fix copy-paste error to MPICXX check that output 1, -1 instead of 2, 0
* only announce missing HDF5 support during autodetection
* improve comments