add a condition in regen.sh to compile with osx tools.
make install doesn't work if package name contains a space character.
Now make install works!