Correct build warnings for 3 issues - detailed in each commit

Also update .gitignore file to exclude common unnecessary files