added ability to compile without hdf