Trying to add GTest
Enabled GTest building
Enabled GTest testing
Adding pthread dependency
Minor cleanings