fixed some build errors
reapplied gitignore