Merge pull request #58 from ruslo/fix.include

Fix missing public include directory
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1528a52..a32cb00 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -376,6 +376,10 @@
   target_link_libraries (glog PUBLIC ${UNWIND_LIBRARY})
 endif (UNWIND_LIBRARY)
 
+if (HAVE_PTHREAD)
+  target_link_libraries (glog PUBLIC ${CMAKE_THREAD_LIBS_INIT})
+endif (HAVE_PTHREAD)
+
 if (WIN32 AND HAVE_SNPRINTF)
   set_property (SOURCE src/windows/port.cc APPEND PROPERTY COMPILE_DEFINITIONS
     HAVE_SNPRINTF)
diff --git a/src/logging_unittest.cc b/src/logging_unittest.cc
index e180567..e0e3676 100644
--- a/src/logging_unittest.cc
+++ b/src/logging_unittest.cc
@@ -635,7 +635,8 @@
   do {
     files->push_back(dirname + data.cFileName);
   } while (FindNextFileA(handle, &data));
-  LOG_SYSRESULT(FindClose(handle));
+  BOOL result = FindClose(handle);
+  LOG_SYSRESULT(result);
 #else
 # error There is no way to do glob.
 #endif