Initialize matio logging system

* src/rmatio.c (rmatio_error_func): Added function to be called from
  the matio logging system

* src/rmatio.c (read_mat): Initialize matio logging system before
  reading mat file

* src/rmatio.c (write_mat): Initialize matio logging system before
  writing mat file