Add .gitignore so .o and the testprog are ignored.
Actually build a shared object and add a rule to link testprog to it
ignore shared objects in the .gitingnore
Update test with somewhat better output