Fix build for modern OS/Xcode/Mathematica versions
add .gitignore