Avoid the use of NO_MODULES (which breaks the linux build) by setting
HDF5_LIBS explicitly.

Beside above change, this commit fixes compilation of Tests and corrects
the normalization of the hdf5 library names.