fix rtyping on windows