Fixed maos mex mode threading problem (-fopenmp was left out when compling mex).
First step toward passing variable from maos to matlab done.