Edited makefile with lpthread, edited wt_btproc