fix the matlab compilation script for mac

The ‘isunix’ function returns true if the environment is osx, which
make the script goes into wrong direction.

made the include/linking more general.
remove the binaries...
Merge pull request #18 from dexterhuang/master

fixed the matlab compilation script for mac