Compiles mostly as is. Needs a configure tweak so it won't find any pthreads, until this is changed to work with pthreads.