Added .gitignore file.
Modified files to fix build errors.