added -pthread option to build
spawn threads to handle HTTP requests
now include pthread.h
tweaks