Implementation of pthread_barrier and optional definition of assume()
to enable compilation on MacOS X.