clang++/OSX comatibility
Pull MacOS pthread initializer fix from ckruse.