Use Makefile patterns to combile object files
Build and link Google Test locally

Because GTest developers discourage packaging GTest binaries [1], trying to
build the test driver fails with undefined references. This change links the
object file directly but is somewhat less portable.

[1] https://code.google.com/p/googletest/wiki/FAQ#Why_is_it_not_recommended_to_install_a_pre-compiled_copy_of_Goog
Add test program to .gitignore
Merge pull request #1 from matze/build-fixes

Thanks :)