Minor build fixups and update .gitignore file