[Issue 10553] Fix types to allow compilation on windows