Merge pull request #141 from alexander-zimmermann/next

Pthread barrier implemenation for OS X