Fixed backward compatibility.
Fixed GetCurrentThreadId prototype.