Do not link against pthread

Pass the appropriate flags to boost::asio so it does not require pthread
and remove the link flags from the makefile

Change-Id: Ie00d8713b14dd7f001045f97a0506c8bb19e69ac
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 78e70a4..e733fad 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,6 +17,7 @@
 add_definitions (-DBOOST_ALL_NO_LIB)
 add_definitions (-DBOOST_NO_RTTI)
 add_definitions (-DBOOST_NO_TYPEID)
+add_definitions (-DBOOST_ASIO_DISABLE_THREADS)
 
 if (NOT YOCTO)
     configure_file (CMakeLists.txt.in 3rdparty/CMakeLists.txt)
@@ -72,7 +73,6 @@
 set_target_properties (zinteloemcmds PROPERTIES VERSION "0.1.0")
 set_target_properties (zinteloemcmds PROPERTIES SOVERSION "0")
 target_link_libraries (zinteloemcmds sdbusplus)
-target_link_libraries (zinteloemcmds ${CMAKE_THREAD_LIBS_INIT})
 target_link_libraries (zinteloemcmds phosphor_logging)
 
 install (TARGETS zinteloemcmds DESTINATION lib/ipmid-providers)