Also remove -lhdf5 when no-ing USER-H5MD.
use h5cc and add clean target
Fix dimension count in write_data.