Fix OSX Compilation: Thread support from Linux