Cosmetic changes to build system

These changes
- complete the Ubuntu cheat sheet's dependencies. Could also reduce libboost-all-dev to libboost-{chrono,date-time,filesystem,program-options,regex,thread}-dev
- Avoid some compiler warnings
- Update .gitignore and remove autogenerated files from git, so "git status" and "git diff" work