Merge pull request #28 from wagnert/master

Add synchronized() method around all wait()/notify() calls => pthreads 2...