Fix .gitignore and add missing libraries.