fix CMakeLists.txt to add -lpthread, did not compile boost 1.55

had a couple of compile errors and wasnt able to compile it until i added `LDFLAGS=-lpthread`