[Util] Handle2Num() now returns uintptr_t.

Fixes Windows issues.