make this compile again on Mac OS X
support non-blocking publish
more acuurate queue limit
more efficient clock mechanism on OS X