clone of matio lib used in OpenMEEG