Fixed threading event issues by using direct pthread calls. Not sure why boost failed.