winpr: unify handle types