Updated .gitignore rules to apply only to project root directory.
Fixed compiler warnings related to unused variables.
Also exclude building mainwindow.* files on Symbian target.