Added pthread support for polarssl entropy if --enable-threaded-resolver config flag is set and pthread.h can be found.