specifying pthread dep to get examples to compile