make getThreadId() work on OSX
make getThreadId() work on OSX

dom96/Nim,tulayang/Nim,tulayang/Nim,tulayang/Nim,tulayang/Nim,dom96/Nim,dom96/Nim,dom96/Nim,russpowers/Nim,tulayang/Nim,russpowers/Nim,russpowers/Nim,dom96/Nim,dom96/Nim,russpowers/Nim,russpowers/Nim,tulayang/Nim,russpowers/Nim,russpowers/Nim,dom96/Nim