added pthread lib as additional target_link_library