Updated configure script
Adopt the matio io routines to use R printing and error routines