linker for local thread storage on OSX
Merge pull request #226 from caktux/osxthread

linker for local thread storage on OSX