Add *.so to .gitignore.
Fix some breaks in the build script.
Merge pull request #3 from jwiggins/fix/annoyances

Fix some small things