add pthread to library list in build; fixes #14