LThread fixed getThreadId cast.
First build on new Xcode (works)