Exclude external libraries and add .gitignore