[DEV] add compilation of m and mm files and MacOs compilation