Reworked unit-testing framework with google-test

- Earlier method of using add_subdirectory to build google-test does
  not work. Moved to fully use ExternalProject_Add
- Provides add_cxx_test which also performs add_test() so that
  all tests can be run using 'make test'
- Added tools/lag-build-test
- pthread find_package() not working yet