Added gitignore
Fixed some build errors.