Merge "Fix gettid() on Windows."