Update .gitignores.
Update configury and code for Linux 3.8.

This is a partial commit (not completely ready yet).