Moved checking for MCR before checking for Matlab.
Switched an include in KTRSAMatReader from string.h to cstring.