Add a debug mode for finding packages/libraries.
Correct a bug making the HDF5 optional unduly, activated debug mod to test.