Modified .gitignore to avoid .o, .a and files ending with ~