make mex files compile with linux
Merge pull request #3 from eendebakpt/master

make mex files compile with linux