cmake updates for building on osx
used named queus for labeling thread operations