cleanup build, avoid segfault on read failure
cleanup .gitignore