Fix build and add a gitignore file.