Improve tracking by not tracking some files and more correctly tracking others.

Update .gitignore
Add .gitattributes
Pass two at improving file tracking.
Fix build parameters for sample program chapter11-4.