Test compilation requires -lpthread on Ubuntu. Also added a .gitignore for the test executable and object code files. refs #216