Fix build system and unit tests.  Also corrects bug in HDF5 loader.