Updated configuration to subsitute HAVE_COMPRESSION

* R/write_mat.r.in (write.mat): Checks that there is support for
  compression