add option to write HDF5 1.8 compatible file
Old user code (matlab <2021b) cannot read file created by library, an option is needed to write file which is compatible with HDF5 1.8.
Old user code (matlab <2021b) cannot read file created by library, an option is needed to write file which is compatible with HDF5 1.8.