Fix link settings for linux.
Update .gitignore.