Add check for -lpthread, pthread.h
Merge branch 'autoconf' of github.com:AndyA/jsondata into autoconf