Enable warnings, configure .gitignore, minor changes from compiler warnings.