fix Makefile for compiling for Matlab