Added missing libs and fixed .gitignore