Update mex/slra_mex_obj.cpp

A patch against crashes under Windows.