Removed unused Dynamic from matlab namespace - clashing with Eigen
Added <algorithm> to mxarray.hpp, which seems to be needed explictly by some compilers