compiles and runs if hdf5 is in LD lib path