unit_MATLAB now compiles on osx, tested using MATLAB_R2012b on osx 10.9.2 using gcc 4.7